package com.itheima.controller;

import com.itheima.manager.SmsCouponHistoryManager;
import com.itheima.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/couponHistory")
public class SmsCouponHistoryController {

    @Autowired
    SmsCouponHistoryManager smsCouponHistoryManager;

    //优惠券使用历史分页
    @GetMapping("list")
    public R findByPage(Integer pageNum, Integer pageSize, Long couponId,String orderSn,Integer useStatus){
        return smsCouponHistoryManager.findByPage(pageNum,pageSize,couponId,orderSn,useStatus);
    }

}
